//
//  UIViewController+HLQBackButtonHandle.h
//  e_card
//
//  Created by gynjobs on 2017/5/18.
//  Copyright © 2017年 haodai. All rights reserved.
//

#import <UIKit/UIKit.h>

@protocol BackButtonHandlerProtocol <NSObject>
@optional
// Override this method in UIViewController derived class to handle 'Back' button click
-(BOOL)navigationShouldPopOnBackButton;
@end

@interface UIViewController (HLQBackButtonHandle)<BackButtonHandlerProtocol>

- (UIViewController*)topViewControllerWithRootViewController:(UIViewController*)rootViewController;
@end
